package com.xiaoshuidi.cloud.module.contract.api;

import com.xiaoshuidi.cloud.framework.common.pojo.CommonResult;
import com.xiaoshuidi.cloud.module.contract.enums.ApiConstants;
import com.xiaoshuidi.cloud.module.contract.vo.ContractTaxRateVO;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = ApiConstants.SERVERNAME)
@Tag(name = "RPC 服务 - 税率配置")
public interface ContractTaxRateApi {

    @GetMapping("rpc-api/contract/taxRate/getContractTaxRate")
    CommonResult<ContractTaxRateVO> getContractTaxRate(@RequestParam("apartmentId") Long apartmentId);
}
